<script>
	export default {
		//  getApp().globalData
		globalData: {
			searchText: '',
			compareUni: [],
			appVersion: {},
			config: {},
			$i18n: {},
			$t: {}
		},
		
		onLaunch: function() {
			this.globalData.$i18n = this.$i18n
			this.globalData.compareUni = []
			this.globalData.$t = str => this.$t(str)
		},
		onShow: function() {
			// 如果用户已登录下拉用户信息
			if (this.$isLogin()) {
				this.$syncUserInfo()
			}
		},
		onHide: function() {
		}
	}
</script>

<style lang="scss">
	@import "@/static/iconfont.css";
	@import "@/static/uni-center/icon/iconfont.css";

	body,
	page {
		background-color: #f5f5f5;
	}

	::v-deep .uni-table {
		min-width: 100% !important;
	}

	.ui-container {}

	.ui-bg-w {
		background-color: #fff;
	}

	.ui-p20 {
		padding: 20rpx;
	}

	.ui-pt80 {
		padding-top: 82rpx;
	}

	.ui-mt10 {
		margin-top: 10rpx;
	}

	.ui-mt20 {
		margin-top: 20rpx;
	}

	pre {
		white-space: pre-wrap;
		line-height: 50rpx;
		font-size: 28rpx;
		font-family: 'Microsoft YaHei';
	}

	/* 组件颜色默认值 #ff6600*/
	/* uni-list uni-list-item */
	.slot-box {
		display: flex;
		flex-direction: row;
		align-items: center;
	}

	.slot-image {
		display: block;
		margin-right: 10px;
		width: 30px;
		height: 30px;
	}

	.slot-text {
		flex: 1;
		margin-right: 10px;
	}

	/*结束 uni-list uni-list-item */
</style>